<li class="clearfix">
    <div>班级</div>
    <div>姓名</div>
    <div>学号</div>
    <div>心得</div>
</li>
<?php if($list){ ?>
    <?php foreach($list as $k=>$v){ ?>
        <li class="clearfix">
            <div><?php echo $v['ctitle'] ?></div>
            <div><?php echo $v['user_name'] ?></div>
            <div><?php echo $v['code_num'] ?></div>
            <?php if($v['count']){ ?>
                <div><?php echo $v['count'] ?></div>
            <?php }else{ ?>
                <div>0</div>
            <?php } ?>
        </li>
    <?php } ?>
<?php } ?>